﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMainCityPositons extends IMessageBase
    {
        public var guild:SEntityId;
        public var guildName:String;
        public var positonInfos:Array;
        public const _type:int = 5127;
        public static var _regist:SMainCityPositons = new SMainCityPositons(true);

        public function SMainCityPositons(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMainCityPositons();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.guild.__write(param1);
            param1.writeString(this.guildName);
            SeqMainCityPositonHelper.write(param1, this.positonInfos);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guild = new SEntityId();
            this.guild.__read(param1);
            this.guildName = param1.readString();
            this.positonInfos = SeqMainCityPositonHelper.read(param1);
            return;
        }// end function

    }
}
